﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Brush = System.Windows.Media.Brush;

namespace PlaceOrder_Client.Controls
{
    /// <summary>
    /// MessageChatBubble.xaml 的交互逻辑
    /// </summary>
    public partial class MessageChatBubble : System.Windows.Controls.UserControl
    {
        public MessageChatBubble()
        {
            InitializeComponent();
        }

        #region 依赖属性


        public Brush Color
        {
            get { return (Brush)GetValue(ColorProperty); }
            set { SetValue(ColorProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Color.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ColorProperty =
            DependencyProperty.Register("Color", typeof(Brush), typeof(MessageChatBubble), new PropertyMetadata(System.Windows.Media.Brushes.ForestGreen));




        public string Message
        {
            get { return (string)GetValue(MessageProperty); }
            set { SetValue(MessageProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Message.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty MessageProperty =
            DependencyProperty.Register("Message", typeof(string), typeof(MessageChatBubble), new PropertyMetadata(null));




        #endregion
    }
}
